import  hashlib

def main():
    digester = hashlib.md5()
    with open('mysql-workbench-community-8.0.21-winx64.msi','rb') as file_stream:
        file_iter = iter(lambda: file_stream.read(1024),b'' )
        for data in file_iter:
            digester.update(data)
    print(digester.hexdigest())
    print(digester.hexdigest()=='bea0696dd7b8cbab25357ee8bf725639')
if __name__ == '__main__':
    main()